package com.wicket.okrpbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrpbff.biz.service.OperationsDeploymentService;
import com.wicket.okrpbff.biz.service.dto.req.*;
import com.wicket.okrpbff.biz.service.dto.res.*;
import com.wicket.okrpbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrframework.integration.FwBaseBaseClient;
import com.wicket.okrframework.integration.dto.QuerySpaceListRespDto;
import com.wicket.okrframework.integration.dto.QuerySpaceListReqDto;
import com.wicket.okrcomponent.integration.dto.ImplementPrivatizationAndSeparationDataComRespDto;
import com.wicket.okrcomponent.integration.dto.ImplementPrivatizationAndSeparationDataComReqDto;
import java.util.stream.Collectors;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrpbff.common.exception.Assert;
import com.wicket.okrapp.integration.FwAppOperationsDeploymentClient;
import com.wicket.okrapp.integration.dto.ImplementCleaningWasteEvaluationDataComRespDto;
import com.wicket.okrapp.integration.dto.ImplementCleaningWasteEvaluationDataComReqDto;
import com.wicket.okroperation.integration.FwOperationOperationsDeploymentClient;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Api(value = "OperationsDeployment", tags = { "OperationsDeployment" })
@RestController
// @RequestMapping("/poms/operationsDeployment/")
public class OperationsDeploymentController {

  @Autowired
  OperationsDeploymentService operationsDeploymentService;
/**
   * B2执行私有化分离数据(管理)
   * gen by moon at 6/12/2023, 12:00:44 PM
   */
    @PostMapping("/oms/mgt/operationsDeployment/implementPrivatizationAndSeparationData")
    @ApiOperation(value = "B2执行私有化分离数据(管理)", response = OkrResult.class)
    public OkrResult<BffImplementPrivatizationAndSeparationDataRespDto> implementPrivatizationAndSeparationData(@RequestBody(required=false) @Validated BffImplementPrivatizationAndSeparationDataReqDto reqDTO){
        return OkrResult.success(operationsDeploymentService.implementPrivatizationAndSeparationData(reqDTO));
    }
/**
   * B3执行清洗垃圾评价数据(管理)
   * gen by moon at 6/12/2023, 12:16:46 PM
   */
    @PostMapping("/oms/mgt/operationsDeployment/implementCleaningWasteEvaluationData")
    @ApiOperation(value = "B3执行清洗垃圾评价数据(管理)", response = OkrResult.class)
    public OkrResult<BffImplementCleaningWasteEvaluationDataRespDto> implementCleaningWasteEvaluationData(@RequestBody(required=false) @Validated BffImplementCleaningWasteEvaluationDataReqDto reqDTO){
        return OkrResult.success(operationsDeploymentService.implementCleaningWasteEvaluationData(reqDTO));
    }
}
